Ext.define('TS.view.inv.ProductBatchNoEditer', {
    extend: 'Ext.window.Window',
    alias : 'widget.prodbatchnoediter',

    title : '批号编辑',
    layout: 'fit',
	config: {
		parentCt:''
    },
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                items: [
                    {
                        xtype: 'textfield',
                        name : 'batchNo',
                        fieldLabel: '批号',
                        allowBlank:false,
                        blankText:'批号不能为空'
                    },
                    {
                        xtype: 'datefield',
                        name : 'manufDate',
                        format:'Y-m-d',
                        fieldLabel: '生产日期'
                    },
                    {
                    	xtype:'datefield',
		        		allowBlank:false,
		        		name : 'expDate',
		        		format:'Y-m-d',
		        		fieldLabel: '有效期'
                    },
                    {
                    	xtype:'datefield',
		        		allowBlank:true,
		        		name : 'lastIncomeDate',
		        		format:'Y-m-d',
		        		fieldLabel: '最后进货'
                    },
                    {
                    	xtype: 'numberfield',
                        name : 'lastIncomePrice',
                        fieldLabel: '最后进价'
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: '保存',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});
